<template>
	<view class="good-list">
		<goodListItem v-for="(item,index) in list" :item="item" @click.native="itemClick(item.car_id)"></goodListItem>
	</view>
</template>

<script>
	import goodListItem from './goodListItem.vue'
	export default {
		components:{
			goodListItem
		},
		props:{
			list:{
				type:Array,
				default(){
					return []
				}
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			itemClick(car_id){
				console.log(car_id);
				uni.navigateTo({
					url:'/pages/carDetails/carDetails?car_id='+car_id
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.good-list{
    padding: 0 20upx;
	}

</style>
